home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
gt_power
/
gth035.zip
/
GTDOORN.HLP
< prev
next >
Wrap
Text File
|
1990-06-30
|
3KB
|
74 lines
╔═════════╦════════════════════════════════════════════════════════════
║ GT-HELP ║ GTDOORn.BAT - batch files which execute individual doors
╚═════════╩════════════════════════════════════════════════════════════
One door batch file exists for each door - you can theoretically have
999 doors, eg :
GTDOOR1.BAT controls door 1
GTDOOR2.BAT controls door 2
.
.
GTDOOR99.BAT controls door 99
GTDOR100.BAT controls door 100
.
.
GTDOR999.BAT controls door 999
GT may pass three parameters to the batch file :
%1 will be either REM or CTTY.
%2 will be the COM port number (usually 1 or 2).
%3 will be the answer to a question, if configured in GTDOORS.BBS
Usually the batch file will begin with
ECHO OFF
to avoid displaying the DOS commands. It will usually be followed by
CHEKTIME ON
to ensure that the caller does not stay in the door longer than is
permitted according to the GT definitions. Chektime works in
conjunction with Doorman, as described below.
It would usually be followed soon after by
%1 COM%2
which will substute either to a REM statement (if used locally) or CTTY
COMn (if used remotely).
Any DOS command capable of outputting to the COM port may be included
in the body of a door batch file, before concluding the batch file with
%1 CON (to put output back to the console)
CHECKTIME OFF
Hints: When installing doors, it may be convenient to omit the ECHO
OFF statement and to include a PAUSE command as its final
statement to see what is going on and to avoid having the
screen erased too soon after execution.
┌─────────────────────────────────────┐
│ Doorman - Carrier Detect Monitoring │
└─────────────────────────────────────┘
If you run doors or external protocols, you should normally also run
DOORMAN. This is a TSR which periodically samples the carrier and
reboots the machine if the carrier is lost.
Doorman needs to be loaded prior to executing GT -- usually either in
autoexec.bat or HOST.BAT.
If you do not run doorman and the caller loses carrier during a door,
then it is likely that the board will hang. Or possibly the next
caller could continue using the previous caller's logon identity which
is a security risk.